package com.yycx.module.bus.provider.controller.hy;

import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
import com.yycx.common.mybatis.model.*;
import java.util.Map;

import org.springframework.web.bind.annotation.RestController;
import com.yycx.common.springmvc.base.BaseController;
import com.yycx.module.bus.client.entity.hy.BusPolicyBonus;
import com.yycx.module.bus.provider.service.hy.BusPolicyBonusService;


/**
 * 分红政策详情控制器
 *
 * @author flyme
 * @date 2023-07-19
 */
@RestController
@RequestMapping("/bus/bpb/")
public class BusPolicyBonusController extends BaseController<BusPolicyBonusService, BusPolicyBonus>  {

    @ApiOperation(value = "分红政策详情-分页列表", notes = "分红政策详情分页列表")
    @GetMapping(value = "page")
    public ResultBody pageList(@RequestParam(required = false) Map params) {
        return bizService.pageList(params);
    }

    @ApiOperation(value = "分红政策详情-列表", notes = "分红政策详情列表")
    @GetMapping(value = "list")
    public ResultBody list(@RequestParam(required = false) Map params) {
        return bizService.listEntityMap(params);
    }

    @ApiOperation(value = "分红政策详情-添加", notes = "添加分红政策详情")
    @PostMapping(value = "save")
    public ResultBody save(@RequestParam(required = false) Map params) {
        return bizService.add(params);
    }

    @ApiOperation(value = "分红政策详情-更新", notes = "更新分红政策详情")
    @PostMapping(value = "update")
    public ResultBody update(@RequestParam(required = false) Map params) {
        return bizService.edit(params);
    }

    @ApiOperation(value = "分红政策详情-删除", notes = "删除分红政策详情")
    @PostMapping(value = "remove")
    public ResultBody remove(@RequestParam(required = false) Map params) {
        return bizService.delete(params);
    }


    @ApiOperation(value = "分红政策详情-详情", notes = "分红政策详情详情")
    @GetMapping(value = "get")
    public ResultBody get(@RequestParam(required = false) Map params) {
        return bizService.get(params);
    }

}
